package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblTeacher;

import java.util.List;

public interface TblTeacherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TblTeacher record);

    int insertSelective(TblTeacher record);

    TblTeacher selectByPrimaryKey(Integer id);
    //根据分公司id查教师
    public List<TblTeacher> selsctTeacherById(Integer branchid);

    int updateByPrimaryKeySelective(TblTeacher record);

    int updateByPrimaryKey(TblTeacher record);
    //添加教师
    public void addTeacher(TblTeacher tblTeacher)throws Exception;
    //修改教师
    public void updateTeacher(TblTeacher tblTeacher)throws Exception;
    //删除教师
    public void deleteTeacher(Integer tid)throws Exception;
    //通过老师id查老师
    public TblTeacher findTeacherById(Integer tid) throws Exception;
}